package club.banyuan.exception.demo1;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/30 下午5:07
 */
public enum Weekday {
    MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY;

    Weekday() {
    }

    @Override
    public String toString() {
        return super.toString();
    }

    boolean isWeekDay(String string){
        if(string.equals(SATURDAY)||string.equals(SUNDAY)){
            System.out.println(string+"不是工作日");
        }else{
            System.out.println(string+"是工作日");
        }
     return true;
    }

    boolean isHoliday(String string){
        if(string.equals(SATURDAY)||string.equals(SUNDAY)){
            System.out.println(string+"是假日");
        }else{
            System.out.println(string+"不是假日");
        }
        return true;
    }


}
